<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<table border="1">
			<tr> <th> id</th> <th> name</th><th> age</th></tr>
		</table>
		<script src="../js/jquery-3.5.1.js"></script>
		<script type="text/javascript">
			$.post("http://192.168.1.138:8080/postdemo", {
				account: "hehe",
				password: "123"
			}, function(result, suc, response) {
				console.log(result, suc, response); 
				console.log(typeof result);
				let json = JSON.parse(result);
				console.log(json);
				$.each(json,function(index,item){
					let tr=`<tr><td>${item.id}</td><td>${item.name}</td><td>${item.age}</td></tr>
					      `;
						  $("table").append(tr);
				})
			});
		</script>
	</body>
</html>
